using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Info : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string type = Request.QueryString["t"];
        if (type != "")
        {
            string code = "";
            switch (type)
            { 
                case "1": //Error
                    if (Session["ErrorCode"] != null)
                        code = Session["ErrorCode"].ToString();
                    else
                        code = Request.QueryString["c"];
                    if (code != "")
                    {
                        lblMessage.Text = Common.GetErrorText("");
                        lblMessage.Text += "<br/><b>" + ResourceHelper.Get("LBL_Code")
                            + "&nbsp;&nbsp;&nbsp;"
                            + code + "</b><br/>";
                        lblMessage.Text += "<br/>" + ResourceHelper.Get("MSG_Error");
                        lblMessage.Text += "<br/>" + Common.GetImageTextLink("SendMessage.aspx?id=admin", "Images/dj/mail.gif", ResourceHelper.Get("MSG_SendMail"), 20);
                    }
                    break;
                case "2": //Warn
                    lblMessage.Text = Common.GetAlertText("");
                    code = Request.QueryString["c"];
                    lblMessage.Text += "<br/>" + ResourceHelper.Get("MSG_" + code);
                    break;
                case "3": //Success
                    lblMessage.Text = Common.GetSuccessText("");
                    code = Request.QueryString["c"];
                    lblMessage.Text += "<br/>" + ResourceHelper.Get("MSG_" + code);
                    break;
                default:
                    break;
            }
        }
    }
}
